//
//  CustomBarItem.swift
//  CustomNavigationItem
//
//  Created by 高永效 on 15/12/7.
//  Copyright © 2015年 TMPercy. All rights reserved.
//

import UIKit

class CustomBarItem: UIView {
    @IBOutlet weak var shareButton: UIButton!
    @IBOutlet weak var collectionButton: UIButton!

    var shareAction: (() -> Void)!
    var collectionAction: (() -> Void)!
    
    @IBAction func share(sender: UIButton) {
        shareAction()
    }
    
    @IBAction func collection(sender: UIButton) {
        collectionAction()
    }
    
}
